package com.aaa.pro.service;

import com.aaa.pro.dao.ProductDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * fileName:ProductServiceImpl
 * description:
 * author:MT
 * createTime:2020/1/12 20:31
 * version:1.0.0
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductDao productDao;


    @Override
    public List<Map> getProducts(Map map) {
        return productDao.getProducts(map);
    }

    @Override
    public List<Map> getProductCategory(Long shopId) {
        return productDao.getProductCategory(shopId);
    }

    @Override
    public Map getProductById(Map map) {
        return productDao.getProductById(map);
    }

    /**
     * 查询店铺下的积分商品
     */
    @Override
    public List<Map> listIntegralPro(long shopId) {
        return productDao.listIntegralPro(shopId);
    }

    @Override
    public Map getProById(Long id) {
        return productDao.getProById(id);
    }


}
